package com.wgj.android.entity;

import android.content.Context;

import com.jiaai.xui.XUI;
import com.jiaai.xui.cache.XCache;
import com.jiaai.xui.utils.XAppUtils;
import com.jiaai.xui.utils.http.HttpCallBack;
import com.jiaai.xui.utils.http.XHttp;
import com.jiaai.xui.view.widget.XToast;
import com.wgj.android.http.WGJAPI;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/11/3.
 */

public class Member implements Serializable {
    public  static  final  String CACHE_KEY="cache_member";
    private  String  m_id;
    private  String m_nick;
    private  String  avater;
    private  String m_phone;
    private  String sharecontent;
    private  String levelname;
    private  String status;
    private  int payed;
    private  String openId;
    private  String unionId;
    private  String cname;
    public String getM_phone() {
        return m_phone;
    }

    public void setM_phone(String m_phone) {
        this.m_phone = m_phone;
    }

    public String getM_id() {
        return m_id;
    }

    public void setM_id(String m_id) {
        this.m_id = m_id;
    }

    public String getAvater() {
        return avater;
    }

    public void setAvater(String avater) {
        this.avater = avater;
    }

    public String getSharecontent() {
        return sharecontent;
    }

    public void setSharecontent(String sharecontent) {
        this.sharecontent = sharecontent;
    }

    public String getLevelname() {
        return levelname;
    }

    public void setLevelname(String levelname) {
        this.levelname = levelname;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getM_nick() {
        return m_nick;
    }

    public void setM_nick(String m_nick) {
        this.m_nick = m_nick;
    }

    public int getPayed() {
        return payed;
    }

    public void setPayed(int payed) {
        this.payed = payed;
    }


    public  static  void  init(String mId,HttpCallBack<Member> callBack){
        XHttp.obtain().get(WGJAPI.getMemberInfoAPI(mId), null, callBack);
    }

    public  String
    getShareUrl(){
        return  WGJAPI.BASEURL+"share/"+m_id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }
}
